<script setup>

import DictTypeList from "@/views/system/dict/DictTypeList.vue";
import DictDataList from "@/views/system/dict/DictDataList.vue";
import {ref} from "vue";

const selectDictCode = ref()

const handleSelectChange = (dictCode) => {
  selectDictCode.value = dictCode
}
</script>

<template>
  <div class="app-container">
    <el-row :gutter="24" justify="space-between">
      <el-col :span="6">
        <dict-type-list @handleSelectChange="handleSelectChange"/>
      </el-col>
      <el-col :span="18">
        <dict-data-list :dict-code="selectDictCode"/>
      </el-col>
    </el-row>
  </div>
</template>

<style scoped lang="scss">

</style>
